package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author X.I.O
 * @title: RestController
 * @projectName spring-cloud-1
 * @description: TODO
 * @date 2021/11/2 23:42
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/test")
    public Map<String, Object> stringObjectMapController(){
        Map<String, Object> map=new HashMap<>();
        map.put("code",0);
        map.put("data","123456");
        return map;
    }
}
